package com.example.rpc;

public class RpcConsumer {

	public static void main(String[] args) {

		long a = System.currentTimeMillis();
		HelloService service = RpcFramework.refer(HelloService.class, "127.0.0.1", 1234);

		String result = service.hello("world");
		System.out.println(result);
		System.out.println(System.currentTimeMillis() - a);

	}

}
